package com.mystnihon.tdroid.view;

import android.os.Bundle;

import com.actionbarsherlock.app.SherlockPreferenceActivity;
import com.mystnihon.tdroid.R;
import com.mystnihon.tdroid.application.TDroidApplication;
import com.mystnihon.tdroid.manager.TransmissionManager;

public class SettingsActivity extends SherlockPreferenceActivity {
	TransmissionManager mManager;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		mManager = ((TDroidApplication) getApplication()).getAppManager().getTransmissionManager();
		addPreferencesFromResource(R.xml.preferences);

	}

	@Override
	protected void onDestroy() {
		mManager.setClientShouldBeInit(true);
		super.onDestroy();
	}
}
